﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ExcellentProject.Master" AutoEventWireup="true" CodeBehind="AdministracionRecursos.aspx.cs" Inherits="ExcellentProject.Cuestionarios.Recursos.AdministracionRecursos" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="banners" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="content" runat="server">
   <%-- <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>--%>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:GridView ID="ResourcesGridView" runat="server" AutoGenerateColumns="False" CellPadding="4" 
        ForeColor="#333333" GridLines="None" 
        DataKeyNames="IdRecurso"
        OnSelectedIndexChanged="ResourcesGridView_SelectedIndexChanged">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:TemplateField>
                <ItemTemplate>
                    <asp:CheckBox ID="mycheck" runat="server" Checked="false" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField HeaderText="Id" DataField="IdRecurso">
                <ItemStyle Width="30px" HorizontalAlign="Center"></ItemStyle>
            </asp:BoundField>
            <asp:BoundField HeaderText="Nombre" DataField="Nombre">
                <ItemStyle Width="200px" HorizontalAlign="Left"></ItemStyle>
            </asp:BoundField>
            <asp:BoundField HeaderText="Tipo">
                <ItemStyle Width="200px" HorizontalAlign="Center"></ItemStyle>
            </asp:BoundField>
            <asp:BoundField HeaderText="Ruta" DataField="Uri">
                <ItemStyle Width="200px" HorizontalAlign="Left"></ItemStyle>
            </asp:BoundField>
            <asp:TemplateField>
                <ItemTemplate>
                    <asp:LinkButton ID="select" runat="server" CommandArgument='<%: DataBind("IdRecurso") %>' Text="Seleccionar"/>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:CommandField AccessibleHeaderText="Opciones" ShowSelectButton="true" ButtonType="link"
                ShowDeleteButton="true" ShowEditButton="true" >
                <ItemStyle Width="200px" />
            </asp:CommandField>
        </Columns>
        <EditRowStyle BackColor="#2461BF" />
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#EFF3FB" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F5F7FB" />
        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
        <SortedDescendingCellStyle BackColor="#E9EBEF" />
        <SortedDescendingHeaderStyle BackColor="#4870BE" />
    </asp:GridView>
        </ContentTemplate>
    </asp:UpdatePanel>
    
</asp:Content>
